/*
 * @Date: 2023-02-19 11:25:25
 * @LastEditTime: 2023-08-08 15:33:22
 * 介绍:
 */

import { defaHttp, ApiRes, PagingApi } from "../index";

/**提币记录 */
export async function apiLocation(data: PagingApi.Req): Promise<boolean> {
  const res = await defaHttp.post<ApiRes<Location.Res>>(
    "/money/withdraw",
    data
  );
  if (res.code === 200) return true;
  return false;
}

/**提币记录 */
export namespace Location {
  export interface Res {}
  export interface Req {
    /**经度 */
    longitude: string;
    /**纬度 */
    latitude: string;
    /**用户地址，陕西省西安市东塘街道 */
    address: string;
    /**设备唯一id */
    cid: string;
    /**设备标识 */
    device: string;
  }
}
